Feature: 专业咨询的生命周期
  作为一个普通用户
  我可以向某个律师提出付费咨询的要求
  这样我可以得到我想知道的法律知识
  
Background:
Given http "accept" header is "application/json"
  And I make a "post" request to "login" with:
  | username    | password   |
  | 13702325511 | 123456   |
  And the response is in "json" format
  And http "authorization" header exists

Scenario: 普通用户可以成功创建咨询，并且上传文件
When I make a "post" request to "center/question/create/pay_text" with:
  | cat_id    | title      |   content     | lawyer_id |
  |  322      |  离婚财产咨询 | 您好，我和前夫离婚有4年了，离婚协议上房产归我，我补偿35万给他，他搬离。| 22 |
And the response is in "json" format
Then the response status code should be 201

Scenario: 普通用户可以成功取消未付款的咨询

Scenario: 普通用户可以成功取消已付款的咨询 (创建后一个小时内不可以取消)
When there is a "pay_text" request with status "new"
And I "cancel" this request with route "center.question.to_cancel"
Then the response status code should be 400
#And the status of the request is "new"